﻿#include "CmdPolarCoordinateGraphSidebarValueDataChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarValueDataChanged::CmdPolarCoordinateGraphSidebarValueDataChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarValueDataChanged::~CmdPolarCoordinateGraphSidebarValueDataChanged()
    {
    }

    bool CmdPolarCoordinateGraphSidebarValueDataChanged::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarValueDataChanged(m_mainWindowId, m_currentIndex);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarValueDataChanged::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarValueDataChanged::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarValueDataChanged::setPolarCoordinateGraphSidebarValueDataChanged(int mainWindowId, int currentIndex)
    {
        m_mainWindowId = mainWindowId;
        m_currentIndex = currentIndex;
    }

} // namespace PostCommand
